﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SacNetUG.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit User
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
    <h2>Edit User</h2>
    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>

        <% Html.RenderPartial("EditFields"); %>

        <p>
            <input type="submit" value="Save" />
        </p>

        <%= Html.AntiForgeryToken() %>
    <% } %>

            
            
<%--            <%= Html.HiddenFor(model => model.Id) %>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.FirstName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FirstName) %>
                <%= Html.ValidationMessageFor(model => model.FirstName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.LastName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.LastName) %>
                <%= Html.ValidationMessageFor(model => model.LastName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.EmailAddress) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.EmailAddress) %>
                <%= Html.ValidationMessageFor(model => model.EmailAddress) %>
            </div>--%>
            
            <%--<div class="editor-label">
                <%= Html.LabelFor(model => model.Street) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Street) %>
                <%= Html.ValidationMessageFor(model => model.Street) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Street2) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Street2) %>
                <%= Html.ValidationMessageFor(model => model.Street2) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.City) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.City) %>
                <%= Html.ValidationMessageFor(model => model.City) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.State) %>
            </div>
            <div class="editor-field">
                <%= Html.NullableDropDownListFor(model => model.StateId, "States", "Id", "Abbreviation", true)%>
                <%= Html.ValidationMessageFor(model => model.StateId) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ZipCode) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ZipCode) %>
                <%= Html.ValidationMessageFor(model => model.ZipCode) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.HomePhoneNumber) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.HomePhoneNumber) %>
                <%= Html.ValidationMessageFor(model => model.HomePhoneNumber) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CellPhoneNumber) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CellPhoneNumber) %>
                <%= Html.ValidationMessageFor(model => model.CellPhoneNumber) %>
            </div>--%>
            


    <div>
        <%//=Html.ActionLink("Back to List", "Index", "User") %>
        <%=Html.ActionLink("Back to List", MVC.User.Index())%>
    </div>

</asp:Content>

